//
// Created by zxh on 2020-4-27.
//

#ifndef ENVCTEL_ENVCONTROLJNI_H
#define ENVCTEL_ENVCONTROLJNI_H

#include <jni.h>

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_initUsbSerialDeviceServer
        (JNIEnv *env,jobject obj,jint prototype,jint channel,jint bautrate);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_initUsbSerialHotplugServer
        (JNIEnv *env, jobject obj);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_getUsbSerialStatus
        (JNIEnv *env, jobject obj,jint channel);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_getModbusDeviceInfo
        (JNIEnv *env, jobject obj,jint ,jint ,jint ,jint,jint []);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_setModbusDeviceInfo
        (JNIEnv *env, jobject obj,jint ,jint ,jint ,jint,jint []);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_curtainMotorDeviceControlInfo
        (JNIEnv *env, jobject obj,int prototype,jint devId,jint funcode,jint startAddr,jint num,jint []);

#if DEBUG_NETWORK_TCPSERVER_ENABLE == 0X01
JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_initTCPServer
        (JNIEnv *env, jobject obj);

JNIEXPORT jint JNICALL Java_com_example_envctel_environmentControl_getTCPClientData
        (JNIEnv *env, jobject obj,jbyteArray * value);
#endif

#endif //ENVCTEL_ENVCONTROLJNI_H
